package com.myfojing.foshuoliaozhibingjing;

import android.content.Intent;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;

public class SutraActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sutra);

        Intent intent = getIntent();
        setTitle(intent.getStringExtra("title"));

        WebView webView = (WebView) findViewById(R.id.sutra_zhouchi);
        WebSettings webSettings = webView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        webView.loadUrl("file:///android_res/raw/" + intent.getStringExtra("html"));

    }
}
